import React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'

import Component from '../../components/QuestionComponents/QuestionCheckbox/Component'

type ComponentType = typeof Component

export default {
  title: 'Question/QuestionCheckbox',
  component: Component,
} as ComponentMeta<ComponentType>

const Template: ComponentStory<ComponentType> = args => <Component {...args} />

// 默认属性
export const Default = Template.bind({})
Default.args = {}

// 设置属性
export const SetProps = Template.bind({})
SetProps.args = {
  title: '多选标题',
  isVertical: false,
  list: [
    {
      value: 'vue2',
      text: 'Vue2',
      checked: true,
    },
    {
      value: 'vue3',
      text: 'Vue3',
      checked: true,
    },
    {
      value: 'react',
      text: 'React',
      checked: true,
    },
  ],
}
